// IOFuncExam2.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include<iostream.h>

int main( )
{
   const int SIZE=80;
   char buffer[SIZE];
   cout<<"Enter a sentence:\n";
   cin>>buffer;
   cout<<"The string read with cin is:\n";
   cin.getline(buffer,20,'/');
   cout<<"The second part is:\n";
   cout<<buffer<<endl;
   cin.putback();
   cin.getline(buffer,20);
   cout<<"The third part is:\n";
   cout<<buffer<<endl;
   return 0;
}

